package com.hna.face.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author cdw
 * @since 2018-09-18
 */
@TableName("iot_device")
public class IotDevice extends Model<IotDevice> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 
	 */
	@TableField(value="update_time")
	private Date updateTime;

	/**
	 * 
	 */
	private String descr;

	/**
	 * 
	 */
	private String name;

	/**
	 * 1:主机；2：手机；3：笔记本；4：打印机；5：空调
	 */
	private String type;

	/**
	 * 1：在线；2：离线
	 */
	private String status;

	/**
	 * 单位：万元；小数点2位
	 */
	private Float price;

	/**
	 * 
	 */
	private Integer cpu;

	/**
	 * 单位：GB
	 */
	private Float mem;

	/**
	 * 
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd") 
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GTM+8")
	@TableField(value="borrow_begin_day")
	private Date borrowBeginDay;

	/**
	 * 
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd") 
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GTM+8")
	@TableField(value="borrow_end_day")
	private Date borrowEndDay;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public Integer getCpu() {
		return cpu;
	}

	public void setCpu(Integer cpu) {
		this.cpu = cpu;
	}

	public Float getMem() {
		return mem;
	}

	public void setMem(Float mem) {
		this.mem = mem;
	}

	public Date getBorrowBeginDay() {
		return borrowBeginDay;
	}

	public void setBorrowBeginDay(Date borrowBeginDay) {
		this.borrowBeginDay = borrowBeginDay;
	}

	public Date getBorrowEndDay() {
		return borrowEndDay;
	}

	public void setBorrowEndDay(Date borrowEndDay) {
		this.borrowEndDay = borrowEndDay;
	}

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return null;
	}

}
